package com.wa.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author gary
 * @date 2022年01月08日 9:52
 */
@Component
public class MyApplicationListener implements ApplicationListener<MyEvent> {

    @Override
    public void onApplicationEvent(MyEvent event) {
        EventBean sysLog = (EventBean) event.getSource();
        System.out.println(sysLog);
    }
}
